<extend name="Index::index"/>
<block name="title"><title>添加商品</title></block>
<block name="table">
<div class="agoods_nav">
	<h3>添加商品</h3>
	<a href="{:U('Goods/index')}"><button style="width:80px;height:40px;border:none;background:#6CCCCB;float:right;margin-right:40px;margin-top:-44px;border-radius:10px;color:#2C6787;">返回</button></a>
</div>
		<br/>
		<form action="{:U('Goods/add')}" method="post" enctype="multipart/form-data" style="width:90%;margin:0 auto;">
			商品名:
				<input type="text" name="name" placeholder="填写商品名"/>
				<br/><br/>
			分 类 &nbsp;:
				<select name="cate_id">
					<foreach name="list" item="val">
					<option value="{$val['id']}">
						{$val['name']}
					</option>
					</foreach>
				</select>
				<br/><br/>
			价 格 &nbsp;:
				<input type="text" name="price" placeholder="填写价格"/>
				<br/><br/>
			库 存 &nbsp;:
				<input type="text" name="stock" placeholder="填写库存量"/>
				<br/><br/>
			图 片 &nbsp;:
				<input type="file" name="pic"/>
				<br/><br/>
			描 述 &nbsp;:
				<textarea name="description" cols="20" rows="4"></textarea>
				<br/><br/>
			<input type="submit" value="添加" style="width:80px;height:40px; margin-left:100px;background:#6CCCCB;border:0;border-radius:10px;"/>
		</form>
</block>